<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/8 0008
 * Time: 16:52
 */

//判断是否退出
if($_GET['type']=='tc'){
    session_start();
    //删除session
    unset($_SESSION['home']);
    //设置cookie过期
    setcookie('home_user','',time()-1,'/');

    header('Location:./index.php');
}
?>